package top.csjss.hospital.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author ztf
 * @Date 11:26 2021/10/22
 **/
public class CashierDTO {

    /**
     * 挂号人id
     */
    @NotNull(message = "患者id为必传项")
    private Integer reportId;

    /**
     * 药品/项目名称
     */
    @NotBlank(message = "项目名称为必传项，岂能为空！")
    private String drugname;

    /**
     * 药品/项目数量
     */
    @NotNull(message = "患者id为必传项")
    private Integer drugnum;

    /**
     * 药品/项目单价
     */
    @NotNull(message = "患者id为必传项")
    private Double repiceprice;

    /**
     * 药品/项目总价
     */
    @NotNull(message = "患者id为必传项")
    private Double repicetotal;

    /**
     * 0 - 非检查项目（打针）  1 - 需检查项目（拍片）
     */
    private Integer ostate;

    @Override
    public String toString() {
        return "CashierDTO{" +
                "reportId=" + reportId +
                ", drugname='" + drugname + '\'' +
                ", drugnum=" + drugnum +
                ", repiceprice=" + repiceprice +
                ", repicetotal=" + repicetotal +
                ", ostate=" + ostate +
                '}';
    }

    public Integer getReportId() {
        return reportId;
    }

    public void setReportId(Integer reportId) {
        this.reportId = reportId;
    }

    public String getDrugname() {
        return drugname;
    }

    public void setDrugname(String drugname) {
        this.drugname = drugname;
    }

    public Integer getDrugnum() {
        return drugnum;
    }

    public void setDrugnum(Integer drugnum) {
        this.drugnum = drugnum;
    }

    public Double getRepiceprice() {
        return repiceprice;
    }

    public void setRepiceprice(Double repiceprice) {
        this.repiceprice = repiceprice;
    }

    public Double getRepicetotal() {
        return repicetotal;
    }

    public void setRepicetotal(Double repicetotal) {
        this.repicetotal = repicetotal;
    }

    public Integer getOstate() {
        return ostate;
    }

    public void setOstate(Integer ostate) {
        this.ostate = ostate;
    }

    public CashierDTO(Integer reportId, String drugname, Integer drugnum, Double repiceprice, Double repicetotal, Integer ostate) {
        this.reportId = reportId;
        this.drugname = drugname;
        this.drugnum = drugnum;
        this.repiceprice = repiceprice;
        this.repicetotal = repicetotal;
        this.ostate = ostate;
    }

    public CashierDTO() {
    }
}
